package utility.webmailclient.app.usermanagement.gwt.registration.widget.common;



public class Utils {
	public static PasswordStrength checkPasswordStrength(String password)
	{
		
		//TODO implement dynamic password strength rules
		if(password.length() < 6)
		{
			
		}
		else
		{  String specialChars = "1234567890~!@#$%^&*(){}[]?";
			if(password.contains(specialChars.subSequence(0,specialChars.length())))
				return PasswordStrength.STRONG;
			else
				return PasswordStrength.MODERATE;
		}
		
		return PasswordStrength.WEAK;
	}
}
